package a.f.c;

import a.c.e;
import a.c.k;
import a.c.w;
import a.f.o;
import a.f.r;
import a.f.rc;

import java.util.ArrayList;
import java.util.HashMap;

public class d
  extends r
{
  public static boolean g;
  
  public boolean canLayout(o paramo)
  {
    boolean bool3 = h.j;
    boolean bool2 = h.i;
    boolean bool1 = true;
    rc localrc;
    if (h.b(paramo))
    {
      localrc = a();
      if (localrc != null)
      {
        k localk1 = paramo.c(i.a);
        k localk2 = paramo.c(i.b);
        HashMap localHashMap = new HashMap();
        Object localObject1 = paramo.v();
        do
        {
          if (!((w)localObject1).e()) {
            break;
          }
          localHashMap.put(localk1.get(((w)localObject1).d()), ((w)localObject1).d());
          ((w)localObject1).f();
          if (bool3) {
            break label319;
          }
          if (bool2) {
            return bool1;
          }
        } while (!bool2);
        localObject1 = new ArrayList(paramo.j());
        if (!bool3)
        {
          w localw = paramo.v();
          do
          {
            do
            {
              if (!localw.e()) {
                break;
              }
              e locale1 = localw.d();
              Object localObject2 = localk2.get(locale1);
              if (bool3) {
                break label262;
              }
              if (bool2) {
                break label261;
              }
              if ((bool3) || (localObject2 != null))
              {
                e locale2 = (e)localHashMap.get(localObject2);
                if (bool3) {
                  continue;
                }
                if (locale2 != null) {
                  ((ArrayList)localObject1).add(paramo.a(locale1, locale2));
                }
              }
              localw.f();
            } while (!bool2);
          } while (bool3);
          bool1 &= localrc.canLayout(paramo);
          label261:
          label262:
          int i = 0;
          do
          {
            if (i >= ((ArrayList)localObject1).size()) {
              break;
            }
            paramo.a((a.c.d)((ArrayList)localObject1).get(i));
            i++;
          } while (!bool2);
        }
      }
    }
    else
    {
      localrc = a();
      if ((bool3) || (localrc != null)) {
        bool1 = localrc.canLayout(paramo);
      }
    }
    label319:
    return bool1;
  }
  
  public void doLayout(o paramo)
  {
    boolean bool2 = h.j;
    boolean bool1 = h.i;
    rc localrc;
    if (h.b(paramo))
    {
      localrc = a();
      if (localrc == null) {
        return;
      }
      k localk1 = paramo.c(i.a);
      k localk2 = paramo.c(i.b);
      HashMap localHashMap = new HashMap();
      Object localObject1 = paramo.v();
      do
      {
        if (!((w)localObject1).e()) {
          break;
        }
        localHashMap.put(localk1.get(((w)localObject1).d()), ((w)localObject1).d());
        ((w)localObject1).f();
        if ((!bool2) && (bool1)) {
          return;
        }
      } while (!bool1);
      localObject1 = new ArrayList(paramo.j());
      if (bool2) {
        return;
      }
      w localw = paramo.v();
      do
      {
        if (!localw.e()) {
          break;
        }
        e locale1 = localw.d();
        Object localObject2 = localk2.get(locale1);
        if (bool2) {
          break label255;
        }
        if (bool1) {
          break label254;
        }
        if ((bool2) || (localObject2 != null))
        {
          e locale2 = (e)localHashMap.get(localObject2);
          if (bool2) {
            continue;
          }
          if (locale2 != null) {
            ((ArrayList)localObject1).add(paramo.a(locale1, locale2));
          }
        }
        localw.f();
      } while (!bool1);
      if (!bool2)
      {
        localrc.doLayout(paramo);
        label254:
        label255:
        int i = 0;
        do
        {
          if (i >= ((ArrayList)localObject1).size()) {
            break;
          }
          paramo.a((a.c.d)((ArrayList)localObject1).get(i));
          i++;
        } while (!bool1);
      }
    }
    else
    {
      localrc = a();
      if ((!bool2) && (localrc == null)) {
        return;
      }
    }
    localrc.doLayout(paramo);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.c.d

 * JD-Core Version:    0.7.0.1

 */